package com.weirdor.mongo.bean;

import java.util.List;

/**
 * @Author werdor
 * @Date 2021/11/9 12:57 下午
 **/
public class Page<T> {
    private final long total;

    private final List<T> data;

    public Page(long total, List<T> data) {
        super();
        this.total = total;
        this.data = data;
    }

    public long getTotal() {
        return total;
    }

    public List<T> getRows() {
        return data;
    }

}
